{if empty($printTemp)}
	<p style="line-height: 100px; text-align: center;">请先选择快递单单模板</p>
{else}
	<p>快递单模板：{$printTemp['expressname']}  快递公司：{$printTemp['expresscom']} 提示：系统已将不可发货状态的订单自动过滤。</p>
	<input type="hidden" value="{$printTemp['expresscom']}" id="expresscom"/>
	<input type="hidden" value="{$printTemp['express']}" id="express"/>
	<table class="table sendtable" style="margin-bottom: 0;">
		<tbody>
			<tr style="font-weight: bold;">
				<td style="width:40px;">序号</td>
				<td style="width: 190px;">订单号</td>
				<td style="width: 190px;">收件人</td>
				<td style="width: 80px;">支付状态</td>
				<td style="width: 70px;">订单状态</td>
				<td style="width: 70px;">快递公司</td>
				<td><span style="float: left;">快递单号</span><a href="javascript:;" style="float: right;" onclick="autonum()"><i class="fa fa-angle-double-down"></i> 自动填充</a></td>
			</tr>
			{if empty($orders)} 
				<tr>
					<td colspan="7">
						<p style="line-height: 100px; text-align: center;">没有可发货状态的订单</p>
					</td>				
				</tr>
			{else}
				{loop $orders $i $item}
					{if $item['dispatchtype']!=1}
						<tr data-status="{$item['status']}" data-ordersn="{$item['ordersn']}" data-orderid="{$item['id']}" class="send-order">
							<td>{php echo $i+1}</td>
							<td>{$item['orderno']}</td>
							<td>{$item['address_address']['realname']}/{$item['address_address']['mobile']}</td>
							<td>
								<label class="label label-{$item['paycss']}">{$item['paytypename']}</label>
							</td>
							<td class="status">
								<label class="label label-{$item['statuscss']}">{$item['statusname']}</label>
							</td>
							<td style="text-align: center;">{$printTemp['expresscom']}</td>
							<td>
								<input class="form-control" type="tel" data-send-state="{$item['send_status']}" value="" placeholder="请输入单号" class="expresssn">
							</td>
						</tr>
					{/if}
				{/loop}
			{/if}
		</tbody>
	</table>
{/if}



